package com.szholly.plug.activity.listener;

import org.activiti.engine.delegate.event.ActivitiEvent;
import org.activiti.engine.delegate.event.BaseEntityEventListener;

/**
 * 定义Activiti工作流的事件监听
 */
public class ActivitiEventListener extends BaseEntityEventListener {

	/**
	 * 当实体创建时调
	 */
	@Override
	protected void onCreate(ActivitiEvent event) {
		super.onCreate(event);
	}

	/**
	 * 当实体删除时调
	 */
	@Override
	protected void onDelete(ActivitiEvent event) {
		super.onDelete(event);
	}

	/**
	 * 当实体更新时调
	 */
	@Override
	protected void onUpdate(ActivitiEvent event) {
		super.onUpdate(event);
	}

	/**
	 * 其他实体相关的事件
	 */
	@Override
	protected void onEntityEvent(ActivitiEvent event) {
		super.onEntityEvent(event);
	}
}